// Light Scene Node
// (c) jimon game studio

#include "CLightSceneNode.h"

namespace je
{
	namespace scene
	{
		//! Constructor
		CLightSceneNode::CLightSceneNode(video::IRender * Render,scene::ISceneManager * SceneManager)
			:ILightSceneNode(Render,"LightSceneNode"),CurrentSceneManager(SceneManager)
		{
			CurrentSceneManager->RegisterLight(this);
		}

		//! Destructor
		CLightSceneNode::~CLightSceneNode()
		{
			CurrentSceneManager->UnRegisterLight(this);
		}

		//! On Update
		void CLightSceneNode::OnUpdate()
		{
			ISceneNode::OnUpdate();
		}

		//! On Render
		void CLightSceneNode::OnRender()
		{
			ISceneNode::OnRender();
		}

		//! Serialize
		void CLightSceneNode::Serialize(core::ISerializeStream * SerializeStream)
		{
			ISceneNode::Serialize(SerializeStream);
		}
	}
}
